/*
 *  Copyright (C) 2022  贺龙宇
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
#pragma once

#include <iostream>
#include <thread>
#include <mutex>
#include <time.h>
#include <opencv2/opencv.hpp>

#include "Camera/FightingCapture.h"

#include "Camera/FightingDahengCapture.h"
#include "Camera/FightingUSBCapture.h"
#include "Camera/FightingVideoCapture.h"

#include "Serial/SerialPort.h"
#include "SerialPort/Protocol.h"

#include "Armor/ArmorDetector.h" /*传统*/
#include "Detector/Detector.h"   /*神经网络*/
#include "Rune/RuneDetector.h"
#include "SolvePos/SolvePos.h"


#include "Config/FightingParam.h"
#include "Select/SelectDev.h"
#include "define.h"

#ifdef TRADITION
#ifdef CNN
#error you chose 2 armor-detect method in file define.h 
#endif 
#endif

#ifndef TRADITION
#ifndef CNN
#error please choose at least one armor-detect method
#endif 
#endif

#ifdef DEBUG
#warning DEBUG mode enabled
#endif

#ifdef READ_FROM_VIDEO
#warning current video source are read from video
#endif

#ifdef PC_DEBUG
#warning PC_DEBUG mode enabled
#endif

#ifdef MANIFOLD_G
#warning current selected device is MANIFOLD_G
#endif

#ifdef MANIFOLD_C
#warning current seletected device is MANIFOLD_C
#endif

#ifdef NUC
#warning current selected device is NUC
#endif

#ifdef NX
#warning current selected device is NX
#endif

#ifdef TRADITION
#warning current aim mode is TRADITION
#endif

#ifdef CNN
#warning current aim mode is CNN
#endif

#ifndef MANIFOLD_G
#ifndef MANIFOLD_C
#ifndef NUC
#ifndef NX
#error please select compute device
#endif
#endif
#endif
#endif